﻿using CID.Domain.Users;

namespace CID.Domain.Persistence.Mappings.Users
{
    public class UserMap : NamedEntityMap<User>
    {
        public UserMap() : base()
        {
            Map(x => x.UserName);
            Map(x => x.Email);
            Map(x => x.Enabled);
            HasMany<UserRoleAssignment>(x => x.AssignedRoles);
        }
    }
}
